package com.wwj.springboot.controller;

import com.wwj.springboot.entity.CmfzMenu;
import com.wwj.springboot.service.CmfzMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author wwj
 */
@RestController
@RequestMapping("menu")
public class MenuController {

    @Autowired
    private CmfzMenuService cms;

    @RequestMapping("selectAll")
    public List<CmfzMenu> selectAll(){
        return cms.selectAll();
    }
}
